﻿using Microsoft.Practices.Prism.StoreApps;
using Microsoft.Practices.Prism.StoreApps.Interfaces;
using System;
using System.Windows.Input;

namespace Sumc.Client.ModernUI.ViewModels
{
    public class PrivacyPolicyFlyoutViewModel : BindableBase, IFlyoutViewModel
    {
        private ICommand goBackCommand;
        private Action closeFlyout;
        private Action goBack;

        public ICommand GoBackCommand
        {
            get
            {
                if (this.goBackCommand == null)
                {
                    this.goBackCommand = new DelegateCommand(() => this.GoBack());
                }

                return this.goBackCommand;
            }
        }

        public Action CloseFlyout
        {
            get
            {
                return closeFlyout;
            }

            set
            {
                SetProperty(ref closeFlyout, value);
            }
        }

        public Action GoBack
        {
            get
            {
                return goBack;
            }

            set
            {
                SetProperty(ref goBack, value);
            }
        }

        public void Open(object parameter, Action successAction)
        {
        }
    }
}